package com.cml.common.dto.entity;

/**
 * 姓名：陈茂林
 * 时间：2023/10/23 15:22
 * 描述：
 */
public class ServerNode {
    private Integer id;

    private String ip;

    private boolean isFollower;

    private Integer port;

    private String role;

    private boolean isLeader;
    private Integer serviceManagerPort;

    public Integer getServiceManagerPort() {
        return serviceManagerPort;
    }

    public void setServiceManagerPort(Integer serviceManagerPort) {
        this.serviceManagerPort = serviceManagerPort;
    }
    public boolean isLeader() {
        return isLeader;
    }

    public void setLeader(boolean leader) {
        isLeader = leader;
    }


    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean isFollower() {
        return isFollower;
    }

    public void setFollower(boolean follower) {
        isFollower = follower;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "ServerNode{" +
                "id=" + id +
                ", ip='" + ip + '\'' +
                ", isFollower=" + isFollower +
                ", port=" + port +
                ", role='" + role + '\'' +
                ", isLeader=" + isLeader +
                ", serviceManagerPort=" + serviceManagerPort +
                '}';
    }
}
